package grape.auth.rest.clientdetails.vo;
import grape.common.rest.vo.BaseIdVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务客户端表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="服务客户端表数据响应对象")
public class OauthClientDetailsVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户端id,app_id")
    private String clientId;

    @ApiModelProperty(value = "资源权限")
    private String resourceIds;

    @ApiModelProperty(value = "客户端密码,app_secret")
    private String clientSecret;

    @ApiModelProperty(value = "授权范围")
    private String scope;

    @ApiModelProperty(value = "授权类型")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "重定向url")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "权限信息")
    private String authorities;

    @ApiModelProperty(value = "token有效时长，单位秒")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "刷新token有效时间，单位秒")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "自动授权")
    private Boolean autoapprove;


}
